//设置token
export function setToken(val) {
    localStorage.setItem('token', val)
}
export function setImg(val) {
    localStorage.setItem('img', val)
}

//取token
export function getToken() {
    return localStorage.getItem('token')
}
export function getImg() {
    return localStorage.getItem('img')
}
//删除token
export function removeToken() {
    localStorage.removeItem('token')
}
//判断是否有token
export function isToken() {
    if (getToken()) {
        return true
    }
    return false
}